package cn.wolfcode.wolf2w.message.controller;

import cn.wolfcode.wolf2w.common.core.domain.R;
import cn.wolfcode.wolf2w.message.service.ISmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sms")
public class SmsController {

    @Autowired
    private ISmsService smsService;

    @PostMapping("sendVerifyCode")
    public R<?> sendVerifyCode(String phone){
        System.err.println("手机号:"+phone);
        smsService.sendVerifyCode(phone);
        return R.ok();
    }
}
